package kroketwebspring.dao;

import java.util.*;

import javax.servlet.http.HttpSession;

import kroketwebspring.domain.*;

public interface ProductDAO {
	public HashMap<Integer, Product> getAllProductsFromSession(HttpSession session);
	public int getProductCount();
	public Product getProduct(int id, HttpSession session);
	public List<Product> getProducts(int start, int amount);
	public List<Product> getSortedProducts(char order, int start, int amount);
	public void addProductToSession(int id, final int amount, HttpSession session);
	public void removeProductFromSession(int id, HttpSession session);
	public ArrayList<Product> getProductsArrayList(HttpSession session);
}